package com.tinyseed.emcp.api.maintenance.domain;

import lombok.*;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @version Revision 1.0.0
 * @版权：
 * @author: Howard
 * @email:
 * @see:
 * @创建日期：2020/3/14
 * @功能说明：维保历史
 * @begin
 * @修改记录:
 * @修改后版本 修改人        修改内容
 * @2020/3/14 wuxiran        创建
 * @end
 */
@Data
@Entity()
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "tb_maintenance_approval_his")
public class MaintenanceApprovalHis implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "maintenance_approval_his")
    @SequenceGenerator(sequenceName = "maintenance_approval_his_sequence", name = "maintenance_approval_his", allocationSize = 1)
    @Column(name = "id")
    private Long id;

    @ManyToOne
    @JoinColumn(name = "maintenance_info_id")
    private MaintenanceInfo maintenanceInfo;

    @Column(length = 32)
    private String auditor;
    @Column()
    private Timestamp auditTime;
    @Column()
    private String approvalReason;
    @Column(length = 32)
    private String rejectedPeople;
    @Column()
    private Timestamp rejectTime;
    @Column()
    private String rejectReason;

}
